how to encrypt and decrypt response body in rest api